package com.qkjia.srb.sms.client;

import com.qkjia.srb.sms.client.fallback.CoreUserInfoClientFallback;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 *  @author 赵乾坤
 *  @since 2021-11-13 15:56
 * "service-core"要调用的服务名字,
 * CoreUserInfoClientFallback 为OpenFeign远程调用接口添加fallback属性值没指定容错类
 */
@FeignClient(value = "service-core",fallback = CoreUserInfoClientFallback.class)
public interface CoreUserInfoClient {

    @ApiOperation("校验手机号是否注册")
    @GetMapping("/api/core/userInfo/checkMobile/{mobile}")
    public boolean checkMobile(@PathVariable("mobile") String mobile);

}